package com.block.merchant.service;

import com.alibaba.fastjson.JSONObject;
import com.block.common.model.param.PushApiKeyParam;
import com.block.db.entity.MemberSourceInfo;
import com.block.db.entity.MerchantBaseInfo;
import com.block.db.entity.MerchantDataPushInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.block.merchant.model.dto.MerchantOrderDTO;
import com.block.merchant.model.result.MatchMerchantInfo;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.Map;

/**
 * <p>
 * 商户推送信息表 服务类
 * </p>
 *
 * @author 
 * @since 2023-08-12
 */
public interface IMerchantDataPushInfoService extends IService<MerchantDataPushInfo> {

    PushApiKeyParam getPushKeyInfo(MerchantBaseInfo merchantBaseInfo, MemberSourceInfo memberSourceInfo);

    MerchantDataPushInfo saveInitPushData(MemberSourceInfo memberSourceInfo, MerchantOrderDTO merchantOrderDTO);

    void queryPushData();

    void querySinglePushDataInfo(MerchantDataPushInfo merchantDataPushInfo);

    MatchMerchantInfo queryApprove(MerchantOrderDTO merchantOrderDTO, MemberSourceInfo memberSourceInfo) throws Exception;
}
